<template>
  <div class="nav_Img">
    <div class="mynav">
      <el-row>
        <el-col :span="12">
          <div class="grid-content bg-purple">
            <ul class="left_nav">
              <li>
                <a href="#">首页</a>
              </li>
              <li>
                <a href="#">L-LIVE</a>
              </li>
              <li>
                <a href="#">视频</a>
              </li>
              <li>
                <a href="#">战队</a>
              </li>
              <li>
                <a href="#">赛程</a>
              </li>
              <li>
                <a href="#">数据</a>
              </li>
              <li>
                <a href="#">售票</a>
              </li>
              <li>
                <a href="#">电竞经理</a>
                <span>N</span>
              </li>
            </ul>
          </div>
        </el-col>
        <el-col :span="12">
          <div class="grid-content bg-purple-light">
            <ul class="right_nav">
              <li>
                <a href="#">全球总决赛</a>
                <span>H</span>
              </li>
              <li>
                <a href="#">LPL</a>
              </li>
              <li>
                <a href="#">发展联赛</a>
              </li>
              <li>
                <a href="#">季中冠军赛</a>
              </li>
              <li>
                <a href="#">洲际系列赛</a>
              </li>
              <li>
                <a href="#">全明星赛</a>
              </li>
              <li>
                <a href="#">德玛西亚杯</a>
              </li>
              <li>
                <a href="#">高校联赛</a>
              </li>
            </ul>
          </div>
        </el-col>
      </el-row>
    </div>
    <div class="details" @mouseenter="btn_add_color" @mouseleave="btn_delete_color">
      <el-button class="btn">查看详情</el-button>
    </div>
  </div>
</template>
<script>
export default {
  data: () => ({}),
  created () {},
  methods: {
    btn_add_color () {
      var btn = document.getElementsByClassName('btn')[0]
      btn.style.color = '#cea04a'
      btn.style.background = '#000'
    },
    btn_delete_color () {
      var btn = document.getElementsByClassName('btn')[0]
      btn.style.background = 'rgba(0, 0, 0, 0.65)'
    }
  }
}
</script>
<style lang="less" scoped>
.details {
  width: 140px;
  height: 40px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin-left: -70px;
  :hover {
    color: #cea04a;
    background: #000;
  }
  .btn {
    border: 2px solid #cea04a !important;
    width: 140px;
    height: 40px;
    background: rgba(0, 0, 0, 0.65);
    color: #cea04a;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
  }
}
.nav_Img {
  position: relative;
  width: 100%;
  height: 470px;
  background: url("../../images/0.jpg");
  li:hover a {
    color: #eb3200 !important;
  }
}
.mynav {
  background: #151619;
  opacity: 0.7;
  .left_nav {
    li {
      float: left;
      height: 56px;
      line-height: 56px;
      margin-right: 23px;
      a {
        color: #e2e2e2;
        font-weight: 700;
        font-size: 16px;
      }
      span {
        background: #eb3200;
        width: 16px;
        height: 16px;
        line-height: 16px;
        border-radius: 8px;
        color: #fff;
        font-size: 12px;
        margin: 20px 0 0 5px;
        text-align: center;
        float: right;
      }
    }
  }
  .right_nav {
    li {
      float: left;
      height: 56px;
      line-height: 56px;
      margin-right: 23px;
      a {
        color: #e2e2e2;
        font-weight: 700;
        font-size: 16px;
      }
      span {
        background: #eb3200;
        width: 16px;
        height: 16px;
        line-height: 16px;
        border-radius: 8px;
        color: #fff;
        font-size: 12px;
        margin: 20px 0 0 5px;
        text-align: center;
        float: right;
      }
    }
  }
}
</style>
